class LambdaExpress
{
    void TestLambda()
    {
        string mid = ", middle part,";
        Func<string, string> anonDel = param =>
        {
            param += mid;
            param += " and this was added to the string.";
            return param;
        };

        Console.WriteLine(anonDel("Start of thring"));
    }

    void TestAnonymousMethods()
    {
        string mid = ", middle part,";
        Func<string, string> anonDel = delegate (string param)
        {
            param += mid;
            param += " and this was added to the string.";
            return param;
        };

        Console.WriteLine(anonDel("Start of thring"));
    }
}